﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Backend/AdminLayout.master" AutoEventWireup="true" CodeFile="Add.aspx.cs" Inherits="Admin_User_Add" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="AdminElegantFood" Runat="Server">
	<div class="panel-heading">
		<h3 class="panel-title">
			<span class="glyphicon glyphicon-user"></span>បញ្ចូលអ្នកប្រើប្រាស់ថ្មី
		</h3>
	</div>
	<div class="panel-body">
		<div class="col-md-12">
			<asp:CreateUserWizard ID="CreateUser" runat="server" OnCreatedUser="efCreateUser_CreatedUser">
				<WizardSteps>
					<asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server">
						<ContentTemplate>
							<table>
								<asp:CompareValidator ID="PasswordCompare" runat="server" ControlToCompare="Password"
									ControlToValidate="ConfirmPassword" CssClass="alert alert-danger" ErrorMessage="អក្សរសម្ងាត់ទាំងពីរមិនដូចគ្នាទេ!"
									ValidationGroup="CreateUser" />
								<span class="ef-required"><asp:Literal ID="ErrorMessage" runat="server" EnableViewState="true"></asp:Literal></span>
								<tbody>
									<tr>
										<td>
											<div class="form-group">
												<asp:Label ID="FirstNameLabel" runat="server" AssociatedControlID="FirstName">នាមខ្លួន</asp:Label>
												<span class="ef-required">*</span>
												<asp:RequiredFieldValidator ID="FirstNameRequired" runat="server" ControlToValidate="FirstName"
													ErrorMessage="នាមខ្លួនត្រូវតែបំពេញ!" CssClass="ef-required" ValidationGroup="CreateUser" />
												<asp:TextBox ID="FirstName" runat="server" CssClass="form-control"></asp:TextBox>
											</div>
										</td>
										<td>
											<div class="form-group">
												<asp:Label ID="LastNameLabel" runat="server" AssociatedControlID="LastName">នាមត្រកូល</asp:Label>
												<span class="ef-required">*</span>
												<asp:RequiredFieldValidator ID="LastNameRequired" runat="server" ControlToValidate="LastName"
													ErrorMessage="នាមត្រកូលត្រូវតែបំពេញ!" CssClass="ef-required" ValidationGroup="CreateUser" />
												<asp:TextBox ID="LastName" runat="server" CssClass="form-control"></asp:TextBox>
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="form-group">
												<asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">ឈ្មោះចូល</asp:Label>
												<span class="ef-required">*</span>
												<asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
													ErrorMessage="ឈ្មោះចូលត្រូវតែបំពេញ!" ValidationGroup="CreateUser" CssClass="ef-required" />
												<asp:TextBox ID="UserName" runat="server" CssClass="form-control"></asp:TextBox>
											</div>
										</td>
										<td>
											<div class="form-group">
												<asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email">អ៊ីម៉ែល</asp:Label>
												<span class="ef-required">*</span>
												<asp:RequiredFieldValidator ID="EmailRequired" runat="server" ControlToValidate="Email"
													ErrorMessage="អ៊ីម៉ែលត្រូវតែបំពេញ!" ValidationGroup="CreateUser" CssClass="ef-required" />
												<asp:TextBox ID="Email" runat="server" CssClass="form-control"></asp:TextBox>
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="form-group">
												<asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">អក្សរសម្ងាត់</asp:Label>
												<span class="ef-required">*</span>
												<asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
													ErrorMessage="អក្សរសម្ងាត់ត្រូវតែបំពេញ!" ValidationGroup="CreateUser" CssClass="ef-required" />
												<asp:TextBox ID="Password" runat="server" TextMode="Password" CssClass="form-control"></asp:TextBox>
											</div>
										</td>
										<td>
											<div class="form-group">
												<asp:Label ID="ConfirmPasswordLabel" runat="server" AssociatedControlID="ConfirmPassword">អក្សរសម្ងាត់ម្ដងទៀត</asp:Label>
												<span class="ef-required">*</span>
												<asp:RequiredFieldValidator ID="ConfirmPasswordRequired" runat="server" ControlToValidate="ConfirmPassword"
													ErrorMessage="អក្សរសម្ងាត់ម្ដងទៀតត្រូវតែបំពេញ!" ValidationGroup="CreateUser" CssClass="ef-required" />
												<asp:TextBox ID="ConfirmPassword" runat="server" TextMode="Password" CssClass="form-control"></asp:TextBox>
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="form-group">
												<asp:Label ID="Label1" runat="server" AssociatedControlID="Password">សំណួរសុវត្ថិភាព</asp:Label>
												<asp:DropDownList ID="Question" runat="server" CssClass="form-control">
													<asp:ListItem>តើម្តាយរបស់អ្នកឈ្មោះអ្វី?</asp:ListItem>
													<asp:ListItem>តើអ្នកកើតនៅទីក្រុងណា?</asp:ListItem>
													<asp:ListItem>តើអ្នកចូលចិត្តកីឡាមួយណា?</asp:ListItem>
													<asp:ListItem>តើគ្រូបង្រៀនដំបូងរបស់អ្នកឈ្មោះអ្វី?</asp:ListItem>
												</asp:DropDownList>
											</div>
										</td>
										<td>
											<div class="form-group">
												<asp:Label ID="AnswerLabel" runat="server" AssociatedControlID="Answer">ចម្លើយ</asp:Label>
												<span class="ef-required">*</span>
												<asp:RequiredFieldValidator ID="AnswerRequired" runat="server" ControlToValidate="Answer"
													ErrorMessage="ចម្លើយត្រូវតែបំពេញ!" ValidationGroup="CreateUser"
													CssClass="ef-required" />
												<asp:TextBox ID="Answer" runat="server" CssClass="form-control"></asp:TextBox>
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="form-group">
												<asp:Label ID="UserRoleLabel" runat="server" AssociatedControlID="UserRole">តួនាទី</asp:Label>
												<asp:DropDownList ID="UserRole" runat="server" CssClass="form-control">
												</asp:DropDownList>
											</div>
										</td>
										<td>
											<div class="form-group">
												<asp:Label ID="GenderLabel" runat="server" AssociatedControlID="Gender">ភេទ</asp:Label>
												<asp:DropDownList ID="Gender" runat="server" CssClass="form-control">
													<asp:ListItem>ប្រុស</asp:ListItem>
													<asp:ListItem>ស្រី</asp:ListItem>
												</asp:DropDownList>
											</div>
										</td>
									</tr>
								</tbody>
							</table>
						</ContentTemplate>
						<CustomNavigationTemplate>
							<asp:Button ID="CreateUserButton" runat="server" Text="រក្សាទុក" CommandName="MoveNext" ValidationGroup="CreateUser"
								CssClass="btn btn-warning" />
						</CustomNavigationTemplate>
					</asp:CreateUserWizardStep>
					<asp:CompleteWizardStep ID="CompleteWizardStep1" runat="server">
					</asp:CompleteWizardStep>
				</WizardSteps>
			</asp:CreateUserWizard>
		</div>
	</div>
</asp:Content>